package com.haohan.jingyuan.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "application.gateway")
public class GatewayProperties {

    /**
     * 是否开启认证
     */
    private boolean authEnabled = true;

    /**
     * 是否开启aes加解密
     */
    private boolean aesEnabled = true;
    /**
     * aes秘钥
     */
    private String aesKey;

    /**
     * 是否开启加验签
     */
    private boolean signEnabled = true;
}